import request from '@/utils/request'

export function getPopulars(query) {
  return request({
    url: '/knowledge/popular/getList',
    method: 'post',
    data: query
  })
}

export function getPopular(id) {
  return request({
    url: '/knowledge/popular/getDetail',
    method: 'post',
    data: id
  })
}

export function savePopular(formdata) {
  return request({
    url: '/knowledge/popular/save',
    method: 'post',
    data: formdata
  })
}
export function changeStatusByPopularID(id) {
  return request({
    url: '/knowledge/popular/change-status',
    method: 'post',
    data: id
  })
}

export function removePopularByID(id) {
  return request({
    url: '/knowledge/popular/remove',
    method: 'post',
    data: id
  })
}

export function deletePopularByID(id) {
  return request({
    url: '/knowledge/popular/delete',
    method: 'post',
    data: id
  })
}

